﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
using BADDGUI.Utils.SQLHelper;

namespace BADDGUI
{
    public partial class frmFmmf : Form
    {
        public frmFmmf()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {
            InitializeUI();
            InitializeData();
            base.OnLoad(e);
        }

        private void frmMain_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        public void InitializeUI()
        {
            this.Size = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
            this.Location = new Point(0, 0);

            dockPanel1.DockLeftPortion = 230;

            BLCGlobalObject.FrmModuleList.DockHandler.DockPanel = BLCGlobalObject.FrmMain.dockPanel1;
            BLCGlobalObject.FrmModuleList.DockHandler.DockAreas = WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft;
            BLCGlobalObject.FrmModuleList.Activate();
        }

        public void InitializeData()
        {
        }
    }
}